package com.bargate.domain.spring.expression.value;

import com.bargate.domain.spring.expression.Storm;
import org.springframework.beans.factory.annotation.Value;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: EAD-MASTER
 * Date: 29/09/2010
 * Time: 00:31:05
 * To change this template use File | Settings | File Templates.
 */
public class CollectionProjectionOperations {

    @Value("#{Storms.![MaxWindVelocity gt 100]}")
    List<Boolean> storms2;
//   @Value("#{Storms.![currentRef.maxWindVelocity<100]}")
//   @Value("#{Storms.![#this.maxWindVelocity<100]}")
    List<Storm> storms3;
//    @Value("#{Storms.![currentRef.maxWindVelocity<100]}")
//    @Value("#{Storms.![#this.maxWindVelocity<100]}")
    List<Storm> storms;


    public List<Storm> getStorms() {
        return storms;
    }

    @Value("#{Storms.![Type]}")
    java.util.List<String> StormsNames;

    public List<String> getStormsNames() {
        return StormsNames;
    }

    @Value("#{Storms.![MaxWindVelocity].?[#this>100]}")
    java.util.List<Double> StormsNames1;

    public List<Double> getStormsNames1() {
        return StormsNames1;
    }

    @Value("#{Storms.![Distance].?[#this gt 50]}")
    java.util.List<Double> stormsNames2;

    public List<Double> getStormsNames2() {
        return stormsNames2;
    }


}
